package com.rjpacket.chileme.app.models;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by Administrator on 2015/3/24 0024.
 */
//主界面headView数据解析
public class MainHeadUp {
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    private String url;
    private String imgUrl;

    public void parseJSON(JSONObject jsonObject){
        if(jsonObject != null){
            try {
                url = jsonObject.getString("url");
                imgUrl = jsonObject.getString("image_url");
            } catch (JSONException e) {
                e.printStackTrace();
            }

        }
    }
}
